<script setup lang="ts">
import {useRoute} from "vue-router";
let $route = useRoute()
import AllOrder from "@/views/user/order/allOrder/AllOrder.vue";
import Detail from "@/views/user/order/detail/Detail.vue";
</script>

<template>
<div class="order">
  <div v-if="$route.query.orderId">
    <Detail/>
  </div>
  <div v-else>
    <AllOrder/>
  </div>
</div>
</template>

<style scoped lang="scss">

</style>